package com.ellwood.IPGuard.infrastruction.domain.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ellwood.IPGuard.common.core.basic.EntityFactory;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @ProjectName: IPGuard-boot
 * @PackageName: com.ellwood.IPGuard.infrastruction.domain.entity
 * @ClassName: UmsRoleEntity
 * @Description: // 角色实体
 * @Author: Ellwood
 * @CreateDate: 2024/9/25 - 下午4:29
 * @Version: V1.0.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("ums_role")
@Schema(description = "角色实体")
public class UmsRoleEntity extends EntityFactory {

    @Schema(description = "角色id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "角色标识")
    private String roleLabel;

    @Schema(description = "角色名字")
    private String roleName;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "备注")
    private String remark;

}